package springfactory.test;

import java.util.List;

import javax.security.auth.Destroyable;

import org.springframework.beans.factory.DisposableBean;
import org.springframework.beans.factory.InitializingBean;

public class Triangle {

	// diese Instanzvariable kann als Property über die Spring XML befüllt
	// werden (<property>)
	private Point pointA;
	private Point pointB;
	private Point pointC;

	/***** Konstruktoren ****/

	/***** Getter und Setter ****/
	public Point getPointA() {
		return pointA;
	}

	public void setPointA(Point pointA) {
		this.pointA = pointA;
	}

	public Point getPointB() {
		return pointB;
	}

	public void setPointB(Point pointB) {
		this.pointB = pointB;
	}

	public Point getPointC() {
		return pointC;
	}

	public void setPointC(Point pointC) {
		this.pointC = pointC;
	}

	/***** Methoden ****/
	public void draw() {
		System.out.println("Ich bin das Triangle - draw().");

		System.out.println("Werte von Punkt: X-> " + getPointA().getX()
				+ " Y-> " + pointA.getY());
		System.out.println("Werte von Punkt: X-> " + getPointB().getX()
				+ " Y-> " + pointB.getY());
		System.out.println("Werte von Punkt: X-> " + getPointC().getX()
				+ " Y-> " + pointC.getY());

	}
	
}
